async function info() {
    try {
        const app = Vue.createApp({
            data() {
                return {
                    user: {},
					info: {},

                }
            },
			async created() {
				this.user = await this.getUserName(); // 在组件创建后立即获取用户实体
				this.info = await this.getInfos();
			},
			methods: {
				async getUserName() {
				  try {
				    var user = await get_info(User_Information_Link);
				    if(user.code==0){
				      return user.data;
				    }else{
				      showPop("获取用户信息失败","error");
				      showPop("原因："+user.message,"warning");
				    }
				  } catch (error) {
					  console.error('获取用户信息失败:', error);
					  return "";
				  }
				},
				async getInfos() {
					var info = await get_info(Info_All_Number_Link);
					if(info.code==0){
						return info.data;
					}else{
						showPop("获取用户信息失败","error");
						showPop("原因："+info.message,"warning");
					}
				},
				async outLogin(){
					var borrowInfo = await get_info(Login_Out_Link);
					if(borrowInfo.code==0){
						showPop("退出登录成功","success");
						showPop("正在转跳至主页","success");
						setTimeout(function() {
						  document.location.replace('/');
						}, 2000);
					}else{
						showPop("退出登录失败","error");
						showPop("原因："+borrowInfo.message,"warning");
					}
				},
			},
			computed: {
			},
	        mounted() {
	        },
        });
		app.mount('#app');
    } catch (error) {
        console.error('Error:', error);
    }
}
info();